<%@ page import="java.util.Date" %>
<%@ page import="java.lang.String" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/11
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>jsp演示</title>
    <link rel="stylesheet" href="css/bootstrap.css">
</head>
<body>
<div class="container">
    <%
        Date d=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        String time=sdf.format(d);
    %>
    <h1>今天的日期为：<%=time%></h1>
    <table class="table table-responsive">
        <%
            for (int i=1;i<=9;i++){
                out.write("<tr>");
                for (int j=1;j<=i;j++){
                    out.write("<td>"+j+"×"+i+"="+(i*j)+"</td>");
                }
                out.write("</tr>");
            }
        %>
    </table>
</div>
</body>
</html>
